package club.xshiwu.springcloud.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * Created by Intellij IDEA.
 * User:  xsw
 * Date:  2020/6/12
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    /*
    {
    private Long id;

    private Long userId;

    private Long productId;

    private Integer count;

    private BigDecimal money;

    private Integer status; //订单状态：0：创建中；1：已完结
}
     */

    private Long id;
    /**
     * userId：用户id
     */
    private Long userId;
    /**
     * userId： 产品id
     */
    private Long productId;
    /**
     * count：数量
     */
    private Integer count;
    /**
     * money：金额
     */
    private BigDecimal money;
    /**
     *  订单状态
     *  0 -> 创建中
     *  1 -> 已完结
     */
    private Integer status;
}
